﻿using System;
using Abp.Web;
using Abp.Timing;
using Castle.Facilities.Logging;

namespace App.Web
{
    public class Global : AbpWebApplication<AppWebModule>
    {
        protected override void Application_Start(object sender, EventArgs e)
        {
            //HibernatingRhinos.Profiler.Appender.EntityFramework.EntityFrameworkProfiler.Initialize();

            //Use UTC clock. Remove this to use local time for your applcation.
            Clock.Provider = new UtcClockProvider();

            //Log4Net configuration
            AbpBootstrapper.IocManager.IocContainer
                .AddFacility<LoggingFacility>(f => f.UseLog4Net()
                    .WithConfig("log4net.config")
                );

            base.Application_Start(sender, e);
        }
    }
}